package com.magic.springbootasync;

import lombok.SneakyThrows;

import java.util.concurrent.Future;

/**
 * @author mzk
 * @Description
 * @create 2021-06-23 15:41
 */
public class AsyncDemoTest {
    @SneakyThrows
    public static void main(String[] args) {
        AsyncDemo asyncDemo = new AsyncDemo();
        Future<String> future = asyncDemo.asyncInvokeReturnFuture(100);
        asyncDemo.asyncInvokeSimplest();
        asyncDemo.asyncInvokeWithParameter("test");
        System.out.println(future.get());
    }
}
